<?php

function fiber_file_get_contents()
{
    $arguments = func_get_args();
    $method = 'file_get_contents';
    if (str_starts_with($arguments[0], 'http')) {
        return Fiber::suspend([$method, $arguments]);
    }

    return call_user_func_array($method, $arguments);
}

return [
    'file_get_contents',
    'sleep',
    'usleep',
];
